//我的邀请码
var Main = function() {
	mui.init({
		swipeBack: false //启用右滑关闭功能
	});
	this.init();
	this.even();
	this.loadData();
};
Main.prototype = {
	init: function() {
		mui('.mui-scroll-wrapper').scroll({
			indicators: true //是否显示滚动条
		});
	},
	even: function() {
		/**跳转我的邀请链接页面*/
		$('#btn-toRecommendLink').on('tap', function() {
			window.location.href = "userRecommendLink.html";
		});
		/**跳转生成二维码页面*/
		$('#btn-toQRCode').on('tap', function() {
			window.location.href = "userQRCode.html";
		});
		/**跳转邀请的用户页面*/
		$('#btn-toRecommendList').on('tap', function() {
			window.location.href = "userRecommendList.html";
		});

	},
	loadData: function() {
		$('#my-recommend').text(storage.recommandPerson);
		$('#recommendCode').text(storage.plainpassword);
	}
}